import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/property/home'
  },
  {
    path: '/property/home',
    name: 'propertyHome',
    component: () => import('@/views/property_views/PropertyHomeView.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/LoginView.vue')
  },
  {
    path: '/property/announcements',
    name: 'propertyAnnouncements',
    component: () => import('@/views/property_views/PropertyAnnouncementsView.vue')
  },
  {
    path: '/property/visitor',
    name: 'propertyVisitor',
    component: () => import('@/views/property_views/PropertyVisitorView.vue')
  },
  {
    path: '/property/activity',
    name: 'propertyActivity',
    component: () => import('@/views/property_views/PropertyActivityView.vue')
  },
  {
    path: '/property/user',
    name: 'PropertyUser',
    component: () => import('@/views/property_views/PropertyUserView.vue')
  },
  {
    path: '/property/personal',
    name: 'propertyPersonal',
    component: () => import('@/views/property_views/PropertyPersonalView.vue')
  },
  {
    path: '/property/log',
    name: 'propertyLog',
    component: () => import('@/views/property_views/PropertyLogView.vue')
  },
  {
    path: '/property/forum',
    name: 'propertyForum',
    component: () => import('@/views/property_views/PropertyForumView.vue')
  },


  {
    path: '/owner/home',
    name: 'ownerHome',
    component: () => import('@/views/owner_views/OwnerHomeView.vue')
  },
  {
    path: '/owner/visitor',
    name: 'ownerVisitor',
    component: () => import('@/views/owner_views/OwnerVisitorView.vue')
  },
  {
    path: '/owner/announcements',
    name: 'ownerAnnouncements',
    component: () => import('@/views/owner_views/OwnerAnnouncementsView.vue')
  },
  {
    path: '/owner/activity',
    name: 'ownerActivity',
    component: () => import('@/views/owner_views/OwnerActivityView.vue')
  },
  {
    path: '/owner/personal',
    name: 'ownerPersonal',
    component: () => import('@/views/owner_views/OwnerPersonalView.vue')
  },
  {
    path: '/owner/forum',
    name: 'ownerForum',
    component: () => import('@/views/owner_views/OwnerForumView.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
